/**
 * Radio Story Cards - using RFID tags to track physical story cards in an agile/lean environment.
 *
 * See http://www.radiostorycards.com for more information.
 *
 *
 * Copyright (C) 2011, Ted M. Young
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
package com.radiostorycards.comm;

import com.radiostorycards.domain.tags.RfidTag;

import java.io.IOException;

/**
 * Different RFID Readers have different protocols, so the RfidReaderTagTranslator takes input from the serial stream
 * and translates it to an array of 5 bytes.
 *
 * @author Ted Young <tedyoung@gmail.com> @JitterTed
 */
public interface RfidReaderTagTranslator {

  boolean isEndOfTag(char inputByte);

  RfidTag rfidStringToTag(String rawRfidInputString) throws IOException;

  byte stringToUnsignedByte(String nextToken);
}
